﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildWarSignUp extends IMessageBase
    {
        public var entityId:SEntityId;
        public var guildId:SEntityId;
        public var guildName:String;
        public var combat:int;
        public var score:int;
        public var serverOpenDay:int;
        public const _type:int = 5095;
        public static var _regist:SGuildWarSignUp = new SGuildWarSignUp(true);

        public function SGuildWarSignUp(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildWarSignUp();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            this.guildId.__write(param1);
            param1.writeString(this.guildName);
            param1.writeInt(this.combat);
            param1.writeInt(this.score);
            param1.writeInt(this.serverOpenDay);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.guildId = new SEntityId();
            this.guildId.__read(param1);
            this.guildName = param1.readString();
            this.combat = param1.readInt();
            this.score = param1.readInt();
            this.serverOpenDay = param1.readInt();
            return;
        }// end function

    }
}
